package com.itmuch.cloud.study.service;

import com.itmuch.cloud.study.entity.Material;
import com.itmuch.cloud.study.entity.Qrcode;

import javax.transaction.Transactional;
import java.util.List;

public interface ItemBarService {

    //保存物料和二维码
	@Transactional
	public String saveItemBar(Material itemCode,List<Qrcode> barCodes);
	
//通过二维码查找物料
	public Material findMaterialBybarCode(String barCode);

//通过物料和二维码更新二维码状态为BIND
	@Transactional
	boolean updateStatusToBind(String material, String barCode);

	//boolean findStatusByMaterial(String material);

//根据物料更新二维码状态为NEW
	@Transactional
	boolean updateStatusToNew(List<String> ids);
	
	
	
	
	
}
